SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
CREATE PROCEDURE [dbo].RutasDeleteCommand
(
	@Original_ID numeric(10, 0),
	@Original_RUTA varchar(150),
	@IsNull_COMENTARIO Int,
	@Original_COMENTARIO varchar(300)
)
AS
	SET NOCOUNT OFF;
DELETE FROM [RUTAS] WHERE (([ID] = @Original_ID) AND ([RUTA] = @Original_RUTA) AND ((@IsNull_COMENTARIO = 1 AND [COMENTARIO] IS NULL) OR ([COMENTARIO] = @Original_COMENTARIO)))
GO
